package com.yonyou.cyxdms.sysAuth.service.entity.notification;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.yonyou.cyxdms.framework.bean.entity.base.DMSBasePO;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;

/**
 * <p>
 * 通知通告反馈记录表
 * </p>
 *
 * @author adu
 * @since 2019-10-14
 */
@TableName("tt_notification_feedback")
public class NotificationFeedbackPO extends DMSBasePO<NotificationFeedbackPO> {

	private static final long serialVersionUID = 1L;

	/**
	 * 通知通告反馈ID
	 */
	@TableId(value = "NOTIFICATION_FEEDBACK_ID", type = IdType.AUTO)
	private Long notificationFeedbackId;

	/**
	 * APP_ID
	 */
	@TableField(value = "APP_ID")
	private String appId;

	/**
	 * 通知通告ID
	 */
	@TableField("NOTIFICATION_ID")
	private Long notificationId;

	/**
	 * 反馈状态（已读，未读）
	 */
	@TableField("STATUS")
	private Integer status;

	/**
	 * 是否是经销商
	 */
	@TableField("IS_DEALER")
	private Integer isDealer;

	/**
	 * 反馈内容
	 */
	@TableField("FEEDBACK_CONTENT")
	private String feedbackContent;

	/**
	 * 反馈时间
	 */
	@TableField("FEEDBACK_TIME")
	private LocalDateTime feedbackTime;

	/**
	 * 反馈人名称
	 */
	@TableField("FEEDBACK_USER_NAME")
	private String feedbackUserName;

	/**
	 * 反馈人
	 */
	@TableField("FEEDBACK_USER")
	private Long feedbackUser;

	/**
	 * 经销商名称
	 */
	@TableField("DEALER_NAME")
	private String dealerName;

	/**
	 * 经销商代码
	 */
	@TableField("OWNER_CODE")
	private String ownerCode;

	/**
	 * 是否删除
	 */
	@TableField("IS_DELETED")
	@Version
	@TableLogic
	private Boolean isDeleted;


	public NotificationFeedbackPO() {
		super();
	}


	public Long getNotificationFeedbackId() {
		return notificationFeedbackId;
	}

	public void setNotificationFeedbackId(Long notificationFeedbackId) {
		this.notificationFeedbackId = notificationFeedbackId;
	}

	public Long getNotificationId() {
		return notificationId;
	}

	public void setNotificationId(Long notificationId) {
		this.notificationId = notificationId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsDealer() {
		return isDealer;
	}

	public void setIsDealer(Integer isDealer) {
		this.isDealer = isDealer;
	}

	public String getFeedbackContent() {
		return feedbackContent;
	}

	public void setFeedbackContent(String feedbackContent) {
		this.feedbackContent = feedbackContent;
	}

	public LocalDateTime getFeedbackTime() {
		return feedbackTime;
	}

	public void setFeedbackTime(LocalDateTime feedbackTime) {
		this.feedbackTime = feedbackTime;
	}

	public String getFeedbackUserName() {
		return feedbackUserName;
	}

	public void setFeedbackUserName(String feedbackUserName) {
		this.feedbackUserName = feedbackUserName;
	}

	public Long getFeedbackUser() {
		return feedbackUser;
	}

	public void setFeedbackUser(Long feedbackUser) {
		this.feedbackUser = feedbackUser;
	}

	public String getDealerName() {
		return dealerName;
	}

	public void setDealerName(String dealerName) {
		this.dealerName = dealerName;
	}

	public String getOwnerCode() {
		return ownerCode;
	}

	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}

	public Boolean getDeleted() {
		return isDeleted;
	}

	public void setDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	@Override
	protected Serializable pkVal() {
		return this.notificationFeedbackId;
	}

	@Override
	public String toString() {
		return "NotificationFeedbackPO{" +
				"notificationFeedbackId=" + notificationFeedbackId +
				", appId='" + appId + '\'' +
				", notificationId=" + notificationId +
				", status=" + status +
				", isDealer=" + isDealer +
				", feedbackContent='" + feedbackContent + '\'' +
				", feedbackTime=" + feedbackTime +
				", feedbackUserName='" + feedbackUserName + '\'' +
				", feedbackUser=" + feedbackUser +
				", dealerName='" + dealerName + '\'' +
				", ownerCode='" + ownerCode + '\'' +
				", isDeleted=" + isDeleted +
				'}';
	}

	/**
	 * 将PO 信息转化为DTO
	 *
	 * @param dto 需要进行转换的dto
	 * @author chengliang
	 * @since 2019-09-25
	 */
	protected <T extends BaseDTO> void transDtoToPo(T dto) {
		BeanMapperUtil.copyProperties(this, dto, "notificationFeedbackId");
	}


}
